package com.mt.order.constants;

public class OrderConstant {

    public static final String PAY_FROM_ANDROID = "android";
    public static final String PAY_FROM_IOS = "ios";
    public static final String PAY_FROM_H5 = "h5";
    public static final String PAY_FROM_PC = "pc";
    public static final String PAY_FROM_BACKEND = "backend";
    public static final String PAY_FROM_OFFLINE = "offline";
    public static final String PAY_FROM_CHANNEL = "channel";
    public static final String PAY_FROM_CRM = "crm";

    /**
     * 支付方式id，yuepay，alipay，wxpay,channelAccount(渠道商账户)
     */
    public static final String PAY_ID_YUEPAY = "yuepay";
    public static final String PAY_ID_ALIPAY = "alipay";
    public static final String PAY_ID_WXPAY = "wxpay";
    public static final String PAY_ID_APPLEPAY = "applepay";
    public static final String PAY_ID_CHANNEL_ACCOUNT = "channelAccount";

    public static final String PAY_NAME_YUEPAY = "余额支付";
    public static final String PAY_NAME_ALIPAY = "支付宝支付";
    public static final String PAY_NAME_WXPAY = "微信支付";
    public static final String PAY_NAME_APPLEPAY = "苹果支付";
    public static final String PAY_NAME_CHANNEL_ACCOUNT = "渠道商账户";

    /**
     * 订单类型，1 充值 2 直播 3 课程 4 视频 5 购物车 6.试卷 ,7.资料 ,8.直播公开课 ,9.课程包
     */
    public static final Integer ORDER_GOODS_TYPE_1 = 1;
    public static final Integer ORDER_GOODS_TYPE_2 = 2;
    public static final Integer ORDER_GOODS_TYPE_3 = 3;
    public static final Integer ORDER_GOODS_TYPE_4 = 4;
    public static final Integer ORDER_GOODS_TYPE_5 = 5;
    public static final Integer ORDER_GOODS_TYPE_6 = 6;
    public static final Integer ORDER_GOODS_TYPE_7 = 7;
    public static final Integer ORDER_GOODS_TYPE_8 = 8;
    public static final Integer ORDER_GOODS_TYPE_9 = 9;

    /**
     * 订单状态,默认是0-订单关闭或无效，1、待支付 2、支付完成 3、退课
     */
    public static final Integer ORDER_STATUS_0 = 0;
    public static final Integer ORDER_STATUS_1 = 1;
    public static final Integer ORDER_STATUS_2 = 2;
    public static final Integer ORDER_STATUS_3 = 3;

    /**
     * 支付状态0-异常订单 1-已下单待支付 2-支付校验通过,目前与订单状态相同，后面订单状态会有所增加
     */
    public static final Integer PAY_STATUS_0 = 0;
    public static final Integer PAY_STATUS_1 = 1;
    public static final Integer PAY_STATUS_2 = 2;

    /**
     * 是否删除 0 显示 1 删除
     */
    public static final Integer ORDER_IS_DELETE_0 = 0;
    public static final Integer ORDER_IS_DELETE_1 = 1;
    /**
     * 是否混合支付。0-否，1-是
     */
    public static final Integer ORDER_PAY_IS_MIX_0 = 0;
    public static final Integer ORDER_PAY_IS_MIX_1 = 1;
    /**
     * 支付状态
     */
    public static final String ORDER_TRADE_STATUS_INIT = "INIT";
    public static final String ORDER_TRADE_STATUS_FAILURE = "FAILURE";
    public static final String ORDER_TRADE_STATUS_SUCCESS = "SUCCESS";

    /**
     * 0-上课网订单,1-渠道商引流客户订单,2-后台创建订单，3-职业版订单,4-crm订单
     */
    public final static Integer ORDER_TRADE_SOURCE_0 = 0;
    public final static Integer ORDER_TRADE_SOURCE_1 = 1;
    public final static Integer ORDER_TRADE_SOURCE_2 = 2;
    public final static Integer ORDER_TRADE_SOURCE_3 = 3;
    public final static Integer ORDER_TRADE_SOURCE_4 = 4;

    /**
     * 是否已经将订单同步到crm,0-否 ,1-是
     */
    public static final Integer IS_CRM_SYN_0 = 0;
    public static final Integer IS_CRM_SYN_1 = 1;

    /**
     * 订单支付超时提醒是否发送，0-未发送，1-已发送
     */
    public static final Integer ORDER_PAYMENT_REMIND_IS_SEND_0 = 0;
    public static final Integer ORDER_PAYMENT_REMIND_IS_SEND_1 = 1;

}
